﻿//-----------------------------------------------------------------------
// <copyright file="UsageRetrievalResult.cs" company="Redmist">
//     Copyright (c) Damien T Smith. All rights reserved.
// </copyright>
// <author>Damien Smith</author>
//-----------------------------------------------------------------------

namespace Redmist.UsageMonitor.WebIO
{
    /// <summary>Contains the results of a HTML usage page retrieval attempt.</summary>
    public class UsageRetrievalResult
    {
        /// <summary>Initializes a new instance of the UsageRetrievalResult class.</summary>
        public UsageRetrievalResult()
        {
        }

        /// <summary>Initializes a new instance of the UsageRetrievalResult class.</summary>
        /// <param name="usageRetrievalStatus">A Redmist.UsageMonitor.WebIO.UsageRetrievalStatus representing a retrieval attempt status.</param>
        /// <param name="htmlResult">A System.String representing a HTML usage page.</param>
        public UsageRetrievalResult(UsageRetrievalStatus usageRetrievalStatus, string htmlResult)
        {
            this.UsageRetrievalStatus = usageRetrievalStatus;
            this.HtmlResult = htmlResult;
        }

        /// <summary>Gets or sets a Redmist.UsageMonitor.WebIO.UsageRetrievalStatus representing a retrieval attempt status.</summary>
        public UsageRetrievalStatus UsageRetrievalStatus { get; set; }

        /// <summary>Gets or sets a System.String representing a HTML usage page.</summary>
        public string HtmlResult { get; set; }
    }
}
